﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Fjaspx.UI.Web.Admin.FriendLink
{
    public partial class LinkAdd : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        protected void btnAdd_Click(object sender, EventArgs e)
        {
            Fjaspx.Sys.Model.Fjaspx_FriendLink link = new Fjaspx.Sys.Model.Fjaspx_FriendLink();
            link.FL_IsAuditing = 1;
            link.FL_Logo = this.imgUrl.Value;
            link.FL_Type = RadioButtonList1.SelectedIndex;
            link.FL_Url = this.txtAddress.Text;
            link.FL_WebName = this.txtName.Text;
            new Fjaspx.Sys.Bll.Fjaspx_FriendLink().Add(link);
            Response.Redirect("LinkManager.aspx");
        }
    }
}